package com.java.comprehensive.arithmetic.programmers;

/**
 * @Author: 窦绍飞
 * @Date: 2022/6/7
 * 面试题 01.09. 字符串轮转
 */
public class IsFlipedString {

	public static boolean isFlipedString(String s1, String s2) {
		return s1.length() == s2.length() && (s1 + s1).contains(s2);
	}

	public static void main(String[] args) {

		String s1 = "abcd";
		String s2 = "acdb";
		isFlipedString(s1, s2);
	}


}
